import VueRouter from 'vue-router'
//导入对应组件
import home from './components/home.vue'
import list from './components/list.vue'
import jobInfo from './components/jobInfo.vue'
import company from './components/company.vue'
//创建路由对象
var router = new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/list/:name',component:list},
        {path:'/jobInfo/:id',component:jobInfo},
        {path:'/company/:id',component:company}
    ]
})
//把路由对象输出出去
export default router